<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 5.4.0">


  <link rel="apple-touch-icon" sizes="180x180" href="/hexo_blog/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/hexo_blog/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/hexo_blog/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/hexo_blog/images/logo.svg" color="#222">

<link rel="stylesheet" href="/hexo_blog/css/main.css">



<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@5.15.2/css/all.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.css">
  <script src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.js"></script>

<script class="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"bone-nails.gitee.io","root":"/hexo_blog/","images":"/hexo_blog/images","scheme":"Gemini","version":"8.2.2","exturl":false,"sidebar":{"position":"left","display":"post","padding":18,"offset":12},"copycode":false,"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":false,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"motion":{"enable":false,"async":false,"transition":{"post_block":"fadeIn","post_header":"fadeInDown","post_body":"fadeInDown","coll_header":"fadeInLeft","sidebar":"fadeInUp"}},"prism":false,"i18n":{"placeholder":"搜索...","empty":"没有找到任何搜索结果：${query}","hits_time":"找到 ${hits} 个搜索结果（用时 ${time} 毫秒）","hits":"找到 ${hits} 个搜索结果"},"path":"/hexo_blog/search.xml","localsearch":{"enable":true,"trigger":"auto","top_n_per_article":1,"unescape":true,"preload":true}};
  </script>
<meta name="description" content="Docker 是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的 Linux或Windows 机器上，也可以实现虚拟化。利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。">
<meta property="og:type" content="article">
<meta property="og:title" content="运用docker安装tomcat-mysql">
<meta property="og:url" content="https://bone-nails.gitee.io/2020/09/08/%E8%BF%90%E7%94%A8docker%E5%AE%89%E8%A3%85tomcat-mysql/index.html">
<meta property="og:site_name" content="Carson Zhao">
<meta property="og:description" content="Docker 是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的 Linux或Windows 机器上，也可以实现虚拟化。利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://imgconvert.csdnimg.cn/aHR0cHM6Ly96emotMTMwMDQwODQ5My5jb3MuYXAtY2hlbmdkdS5teXFjbG91ZC5jb20vJUU1JTlCJUJFJUU1JUJBJThBL3ZpbSVFNSU5MSVCRCVFNCVCQiVBNCVFNyU5QSU4NCVFNCVCRCVCRiVFNyU5NCVBOC5wbmc?x-oss-process=image/format,png">
<meta property="article:published_time" content="2020-09-07T16:10:57.000Z">
<meta property="article:modified_time" content="2020-09-18T12:49:13.638Z">
<meta property="article:author" content="Carson Zhao">
<meta property="article:tag" content="Docker">
<meta property="article:tag" content="Tomcat">
<meta property="article:tag" content="Mysql">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://imgconvert.csdnimg.cn/aHR0cHM6Ly96emotMTMwMDQwODQ5My5jb3MuYXAtY2hlbmdkdS5teXFjbG91ZC5jb20vJUU1JTlCJUJFJUU1JUJBJThBL3ZpbSVFNSU5MSVCRCVFNCVCQiVBNCVFNyU5QSU4NCVFNCVCRCVCRiVFNyU5NCVBOC5wbmc?x-oss-process=image/format,png">


<link rel="canonical" href="https://bone-nails.gitee.io/2020/09/08/%E8%BF%90%E7%94%A8docker%E5%AE%89%E8%A3%85tomcat-mysql/">


<script class="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>
<title>运用docker安装tomcat-mysql | Carson Zhao</title>
  




  <noscript>
  <style>
  body { margin-top: 2rem; }

  .use-motion .menu-item,
  .use-motion .sidebar,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header {
    visibility: visible;
  }

  .use-motion .header,
  .use-motion .site-brand-container .toggle,
  .use-motion .footer { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle,
  .use-motion .custom-logo-image {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line {
    transform: scaleX(1);
  }

  .search-pop-overlay, .sidebar-nav { display: none; }
  .sidebar-panel { display: block; }
  </style>
</noscript>

<link rel="alternate" href="/hexo_blog/atom.xml" title="Carson Zhao" type="application/atom+xml">
</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="headband"></div>

  <main class="main">
    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏" role="button">
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
        <span class="toggle-line"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/hexo_blog/" class="brand" rel="start">
      <i class="logo-line"></i>
      <h1 class="site-title">Carson Zhao</h1>
      <i class="logo-line"></i>
    </a>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
        <i class="fa fa-search fa-fw fa-lg"></i>
    </div>
  </div>
</div>



<nav class="site-nav">
  <ul class="main-menu menu">
        <li class="menu-item menu-item-home"><a href="/hexo_blog/" rel="section"><i class="fa fa-home fa-fw"></i>首页</a></li>
        <li class="menu-item menu-item-about"><a href="/hexo_blog/about/" rel="section"><i class="fa fa-user fa-fw"></i>关于</a></li>
        <li class="menu-item menu-item-tags"><a href="/hexo_blog/tags/" rel="section"><i class="fa fa-tags fa-fw"></i>标签</a></li>
        <li class="menu-item menu-item-categories"><a href="/hexo_blog/categories/" rel="section"><i class="fa fa-th fa-fw"></i>分类</a></li>
      <li class="menu-item menu-item-search">
        <a role="button" class="popup-trigger"><i class="fa fa-search fa-fw"></i>搜索
        </a>
      </li>
  </ul>
</nav>



  <div class="search-pop-overlay">
    <div class="popup search-popup"><div class="search-header">
  <span class="search-icon">
    <i class="fa fa-search"></i>
  </span>
  <div class="search-input-container">
    <input autocomplete="off" autocapitalize="off" maxlength="80"
           placeholder="搜索..." spellcheck="false"
           type="search" class="search-input">
  </div>
  <span class="popup-btn-close" role="button">
    <i class="fa fa-times-circle"></i>
  </span>
</div>
<div class="search-result-container no-result">
  <div class="search-result-icon">
    <i class="fa fa-spinner fa-pulse fa-5x"></i>
  </div>
</div>

    </div>
  </div>

</div>
        
  
  <div class="toggle sidebar-toggle" role="button">
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
    <span class="toggle-line"></span>
  </div>

  <aside class="sidebar">

    <div class="sidebar-inner sidebar-nav-active sidebar-toc-active">
      <ul class="sidebar-nav">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <div class="sidebar-panel-container">
        <!--noindex-->
        <div class="post-toc-wrap sidebar-panel">
            <div class="post-toc animated"><ol class="nav"><li class="nav-item nav-level-3"><a class="nav-link" href="#Docker-%E6%98%AF%E4%B8%80%E4%B8%AA%E5%BC%80%E6%BA%90%E7%9A%84%E5%BA%94%E7%94%A8%E5%AE%B9%E5%99%A8%E5%BC%95%E6%93%8E%EF%BC%8C%E8%AE%A9%E5%BC%80%E5%8F%91%E8%80%85%E5%8F%AF%E4%BB%A5%E6%89%93%E5%8C%85%E4%BB%96%E4%BB%AC%E7%9A%84%E5%BA%94%E7%94%A8%E4%BB%A5%E5%8F%8A%E4%BE%9D%E8%B5%96%E5%8C%85%E5%88%B0%E4%B8%80%E4%B8%AA%E5%8F%AF%E7%A7%BB%E6%A4%8D%E7%9A%84%E9%95%9C%E5%83%8F%E4%B8%AD%EF%BC%8C%E7%84%B6%E5%90%8E%E5%8F%91%E5%B8%83%E5%88%B0%E4%BB%BB%E4%BD%95%E6%B5%81%E8%A1%8C%E7%9A%84-Linux%E6%88%96Windows-%E6%9C%BA%E5%99%A8%E4%B8%8A%EF%BC%8C%E4%B9%9F%E5%8F%AF%E4%BB%A5%E5%AE%9E%E7%8E%B0%E8%99%9A%E6%8B%9F%E5%8C%96%E3%80%82"><span class="nav-number">1.</span> <span class="nav-text">Docker 是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的 Linux或Windows 机器上，也可以实现虚拟化。</span></a></li><li class="nav-item nav-level-3"><a class="nav-link" href="#%E5%88%A9%E7%94%A8docker%E5%8F%AF%E4%BB%A5%E5%BF%AB%E9%80%9F%E6%90%AD%E5%BB%BA%E7%8E%AF%E5%A2%83%EF%BC%8C%E7%9B%B8%E6%AF%94%E4%BA%8E%E8%99%9A%E6%8B%9F%E6%9C%BA%EF%BC%8CDocker%E4%B8%8D%E4%BB%85%E4%BD%93%E7%A7%AF%E5%B0%8F%EF%BC%8C%E8%80%8C%E4%B8%94%E8%BF%90%E8%A1%8C%E9%80%9F%E5%BA%A6%E5%BF%AB%E3%80%82"><span class="nav-number">2.</span> <span class="nav-text">利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。</span></a></li></ol></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#linux%E7%B3%BB%E7%BB%9F%E6%93%8D%E4%BD%9C"><span class="nav-number"></span> <span class="nav-text">linux系统操作</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%85%8D%E7%BD%AE%E8%99%9A%E6%8B%9F%E6%9C%BA%E7%BD%91%E7%BB%9C"><span class="nav-number"></span> <span class="nav-text">配置虚拟机网络</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%98%B2%E7%81%AB%E5%A2%99%E6%93%8D%E4%BD%9C"><span class="nav-number"></span> <span class="nav-text">防火墙操作</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#linux%E5%9F%BA%E6%9C%AC%E5%91%BD%E4%BB%A4"><span class="nav-number"></span> <span class="nav-text">linux基本命令</span></a><ol class="nav-child"><li class="nav-item nav-level-4"><a class="nav-link" href="#%E5%B8%B8%E7%94%A8%E5%91%BD%E4%BB%A4"><span class="nav-number">0.1.</span> <span class="nav-text">常用命令</span></a></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#vim%E7%BC%96%E8%BE%91%E5%B7%A5%E5%85%B7%E4%BD%BF%E7%94%A8"><span class="nav-number"></span> <span class="nav-text">vim编辑工具使用</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#docker%E5%85%A5%E9%97%A8"><span class="nav-number"></span> <span class="nav-text">docker入门</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E8%BF%90%E8%A1%8C%E9%95%9C%E5%83%8F"><span class="nav-number">0.0.1.</span> <span class="nav-text">运行镜像</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E6%9F%A5%E7%9C%8B%E6%AD%A3%E5%9C%A8%E8%BF%90%E8%A1%8C%E7%9A%84%E5%AE%B9%E5%99%A8id"><span class="nav-number">0.0.2.</span> <span class="nav-text">查看正在运行的容器id</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E8%BF%9B%E5%85%A5%E5%88%B0%E5%AE%B9%E5%99%A8%E5%86%85%E9%83%A8"><span class="nav-number">0.0.3.</span> <span class="nav-text">进入到容器内部</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E9%80%80%E5%87%BA%E5%AE%B9%E5%99%A8"><span class="nav-number">0.0.4.</span> <span class="nav-text">退出容器</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E6%96%87%E4%BB%B6%E4%BC%A0%E8%BE%93-%E7%B3%BB%E7%BB%9F%E5%88%B0%E5%AE%B9%E5%99%A8"><span class="nav-number">0.0.5.</span> <span class="nav-text">文件传输(系统到容器)</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E6%96%87%E4%BB%B6%E4%BC%A0%E8%BE%93-%E5%AE%B9%E5%99%A8%E5%88%B0%E7%B3%BB%E7%BB%9F"><span class="nav-number">0.0.6.</span> <span class="nav-text">文件传输(容器到系统)</span></a></li></ol></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#%E9%95%9C%E5%83%8F%E5%92%8C%E5%AE%B9%E5%99%A8%E7%9A%84%E5%88%A0%E9%99%A4%EF%BC%9A%E5%85%88%E5%81%9C%E6%AD%A2%E5%AE%B9%E5%99%A8%EF%BC%8C%E5%86%8D%E5%88%A0%E9%99%A4%E5%AE%B9%E5%99%A8%EF%BC%8C%E5%88%A0%E9%99%A4%E9%95%9C%E5%83%8F"><span class="nav-number"></span> <span class="nav-text">镜像和容器的删除：先停止容器，再删除容器，删除镜像</span></a><ol class="nav-child"><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%81%9C%E6%AD%A2%E5%AE%B9%E5%99%A8"><span class="nav-number">0.0.1.</span> <span class="nav-text">停止容器</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E5%AE%B9%E5%99%A8"><span class="nav-number">0.0.2.</span> <span class="nav-text">删除容器</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E5%88%A0%E9%99%A4%E9%95%9C%E5%83%8F"><span class="nav-number">0.0.3.</span> <span class="nav-text">删除镜像</span></a></li><li class="nav-item nav-level-5"><a class="nav-link" href="#%E6%9E%84%E5%BB%BA%E9%95%9C%E5%83%8F%E5%8F%91%E5%B8%83%E8%87%AA%E5%B7%B1%E7%9A%84%E9%A1%B9%E7%9B%AE"><span class="nav-number">0.0.4.</span> <span class="nav-text">构建镜像发布自己的项目</span></a></li></ol></li></ol></li></ol></li><li class="nav-item nav-level-2"><a class="nav-link" href="#docker-%E5%AE%89%E8%A3%85tomcat"><span class="nav-number"></span> <span class="nav-text">docker 安装tomcat</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#docker-%E5%AE%89%E8%A3%85mysql"><span class="nav-number"></span> <span class="nav-text">docker 安装mysql</span></a></li></ol></li><li class="nav-item nav-level-1"><a class="nav-link" href="#docker%E5%AE%89%E8%A3%85tomcat%E5%92%8Cmysql5-7%EF%BC%8C%E8%BF%90%E8%A1%8CEasyBuy%E9%A1%B9%E7%9B%AE"><span class="nav-number"></span> <span class="nav-text">docker安装tomcat和mysql5.7，运行EasyBuy项目</span></a></div>
        </div>
        <!--/noindex-->

        <div class="site-overview-wrap sidebar-panel">
          <div class="site-author site-overview-item animated" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="Carson Zhao"
      src="/hexo_blog/images/1.png">
  <p class="site-author-name" itemprop="name">Carson Zhao</p>
  <div class="site-description" itemprop="description"></div>
</div>
<div class="site-state-wrap site-overview-item animated">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/hexo_blog/archives">
          <span class="site-state-item-count">59</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/hexo_blog/categories/">
          
        <span class="site-state-item-count">14</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/hexo_blog/tags/">
          
        <span class="site-state-item-count">35</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="cc-license site-overview-item animated" itemprop="license">
    <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" class="cc-opacity" rel="noopener" target="_blank"><img src="/hexo_blog/images/cc-by-nc-sa.svg" alt="Creative Commons"></a>
  </div>



        </div>
      </div>
    </div>
  </aside>
  <div class="sidebar-dimmer"></div>


    </header>

    
  <div class="back-to-top" role="button">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>

<noscript>
  <div class="noscript-warning">Theme NexT works best with JavaScript enabled</div>
</noscript>


    <div class="main-inner post posts-expand">


  


<div class="post-block">
  
  

  <article itemscope itemtype="http://schema.org/Article" class="post-content" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://bone-nails.gitee.io/2020/09/08/%E8%BF%90%E7%94%A8docker%E5%AE%89%E8%A3%85tomcat-mysql/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/hexo_blog/images/1.png">
      <meta itemprop="name" content="Carson Zhao">
      <meta itemprop="description" content="">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="Carson Zhao">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          运用docker安装tomcat-mysql
        </h1>

        <div class="post-meta-container">
          <div class="post-meta">
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-calendar"></i>
      </span>
      <span class="post-meta-item-text">发表于</span>

      <time title="创建时间：2020-09-08 00:10:57" itemprop="dateCreated datePublished" datetime="2020-09-08T00:10:57+08:00">2020-09-08</time>
    </span>
      <span class="post-meta-item">
        <span class="post-meta-item-icon">
          <i class="far fa-calendar-check"></i>
        </span>
        <span class="post-meta-item-text">更新于</span>
        <time title="修改时间：2020-09-18 20:49:13" itemprop="dateModified" datetime="2020-09-18T20:49:13+08:00">2020-09-18</time>
      </span>
    <span class="post-meta-item">
      <span class="post-meta-item-icon">
        <i class="far fa-folder"></i>
      </span>
      <span class="post-meta-item-text">分类于</span>
        <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
          <a href="/hexo_blog/categories/Docker/" itemprop="url" rel="index"><span itemprop="name">Docker</span></a>
        </span>
    </span>

  
    <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="far fa-eye"></i>
      </span>
      <span class="post-meta-item-text">阅读次数：</span>
      <span id="busuanzi_value_page_pv"></span>
    </span>
    <span class="post-meta-item" title="本文字数">
      <span class="post-meta-item-icon">
        <i class="far fa-file-word"></i>
      </span>
      <span class="post-meta-item-text">本文字数：</span>
      <span>3.7k</span>
    </span>
    <span class="post-meta-item" title="阅读时长">
      <span class="post-meta-item-icon">
        <i class="far fa-clock"></i>
      </span>
      <span class="post-meta-item-text">阅读时长 &asymp;</span>
      <span>3 分钟</span>
    </span>
</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">
        <h3 id="Docker-是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的-Linux或Windows-机器上，也可以实现虚拟化。"><a href="#Docker-是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的-Linux或Windows-机器上，也可以实现虚拟化。" class="headerlink" title="Docker 是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的 Linux或Windows 机器上，也可以实现虚拟化。"></a>Docker 是一个开源的应用容器引擎，让开发者可以打包他们的应用以及依赖包到一个可移植的镜像中，然后发布到任何流行的 Linux或Windows 机器上，也可以实现虚拟化。</h3><h3 id="利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。"><a href="#利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。" class="headerlink" title="利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。"></a>利用docker可以快速搭建环境，相比于虚拟机，Docker不仅体积小，而且运行速度快。</h3><span id="more"></span>
<h1 id="linux系统操作"><a href="#linux系统操作" class="headerlink" title="linux系统操作"></a>linux系统操作</h1><h2 id="配置虚拟机网络"><a href="#配置虚拟机网络" class="headerlink" title="配置虚拟机网络"></a>配置虚拟机网络</h2><p>ping不通原因：</p>
<ul>
<li>1.服务未启动</li>
<li>2.没有网卡 </li>
<li>3.网段未保持一致，或超出网段范围 </li>
<li>4.网卡默认没打开<code>vim /etc/sysconfig/network-scripts/ifcfg-ens33 </code>,设置 <code>onboot=yes</code>再重启服务<code>systemctl restart network</code></li>
<li>net模式：主机和虚拟机不需要在同一网段也能通信，桥接模式必须和主机在同一网段<h2 id="防火墙操作"><a href="#防火墙操作" class="headerlink" title="防火墙操作"></a>防火墙操作</h2>systemctl status 服务名<br>systemctl stop 服务名<br>systemctl start 服务名<br>systemctl restart 服务名<br>systemctl disable 服务名    禁止该服务开机后自动启动<br>systemctl enable 服务名     允许该服务开机后自动启动  </li>
</ul>
<p>firewalld  防火墙服务</p>
<p>network    网卡服务</p>
<h2 id="linux基本命令"><a href="#linux基本命令" class="headerlink" title="linux基本命令"></a>linux基本命令</h2><h4 id="常用命令"><a href="#常用命令" class="headerlink" title="常用命令"></a>常用命令</h4><p>文件与目录操作</p>
<table>
<thead>
<tr>
<th>命令</th>
<th>解析</th>
</tr>
</thead>
<tbody><tr>
<td>cd /</td>
<td>进入系统根目录</td>
</tr>
<tr>
<td>cd /home</td>
<td>进入 ‘/home’ 目录</td>
</tr>
<tr>
<td>cd ..</td>
<td>返回上一级目录</td>
</tr>
<tr>
<td>cd ../..</td>
<td>返回上两级目录</td>
</tr>
<tr>
<td>cd -</td>
<td>返回上次所在目录</td>
</tr>
<tr>
<td>cd ~</td>
<td>进入当前用户的根目录</td>
</tr>
<tr>
<td>cp file1 file2</td>
<td>将file1复制为file2</td>
</tr>
<tr>
<td>cp -a dir1 dir2</td>
<td>复制一个目录</td>
</tr>
<tr>
<td>cp -a /tmp/dir1 .</td>
<td>复制一个目录到当前工作目录（.代表当前目录）</td>
</tr>
<tr>
<td>ls</td>
<td>查看目录中的文件</td>
</tr>
<tr>
<td>ls -a</td>
<td>显示隐藏文件</td>
</tr>
<tr>
<td>ls -l</td>
<td>显示详细信息,可简写为 ll</td>
</tr>
<tr>
<td>ls -lrt</td>
<td>按时间显示文件（l表示详细列表，r表示反向排序，t表示按时间排序）</td>
</tr>
<tr>
<td>pwd</td>
<td>显示当前路径</td>
</tr>
<tr>
<td>mkdir dir1</td>
<td>创建 ‘dir1’ 目录</td>
</tr>
<tr>
<td>mkdir dir1 dir2</td>
<td>同时创建两个目录</td>
</tr>
<tr>
<td>mkdir -p /tmp/dir1/dir2</td>
<td>创建一个目录树</td>
</tr>
<tr>
<td>mv dir1 dir2</td>
<td>移动/重命名一个目录</td>
</tr>
<tr>
<td>rm -f file1</td>
<td>删除 ‘file1’</td>
</tr>
<tr>
<td>rm -rf dir1</td>
<td>删除 ‘dir1’ 目录及其子目录内容 -f表示不提示直接删 -r 表示强制删</td>
</tr>
</tbody></table>
<p>查看文件内容</p>
<table>
<thead>
<tr>
<th>命令</th>
<th>解析</th>
</tr>
</thead>
<tbody><tr>
<td>cat file1</td>
<td>从第一个字节开始正向查看文件的内容</td>
</tr>
<tr>
<td>head -2 file1</td>
<td>查看一个文件的前两行</td>
</tr>
<tr>
<td>more file1</td>
<td>查看一个长文件的内容</td>
</tr>
<tr>
<td>tac file1</td>
<td>从最后一行开始反向查看一个文件的内容</td>
</tr>
<tr>
<td>tail -3 file1</td>
<td>查看一个文件的最后三行</td>
</tr>
<tr>
<td>vi file</td>
<td>打开并浏览文件</td>
</tr>
</tbody></table>
<p>文本内容处理</p>
<table>
<thead>
<tr>
<th>命令</th>
<th>解析</th>
</tr>
</thead>
<tbody><tr>
<td>grep str /tmp/test</td>
<td>在文件 ‘/tmp/test’ 中查找 “str”</td>
</tr>
<tr>
<td>grep ^str /tmp/test</td>
<td>在文件 ‘/tmp/test’ 中查找以 “str” 开始的行</td>
</tr>
<tr>
<td>grep [0-9] /tmp/test</td>
<td>查找 ‘/tmp/test’ 文件中所有包含数字的行</td>
</tr>
<tr>
<td>grep str -r /tmp/*</td>
<td>在目录 ‘/tmp’ 及其子目录中查找 “str”</td>
</tr>
<tr>
<td>diff file1 file2</td>
<td>找出两个文件的不同处</td>
</tr>
<tr>
<td>sdiff file1 file2</td>
<td>以对比的方式显示两个文件的不同</td>
</tr>
</tbody></table>
<h2 id="vim编辑工具使用"><a href="#vim编辑工具使用" class="headerlink" title="vim编辑工具使用"></a>vim编辑工具使用</h2><p><img src="https://imgconvert.csdnimg.cn/aHR0cHM6Ly96emotMTMwMDQwODQ5My5jb3MuYXAtY2hlbmdkdS5teXFjbG91ZC5jb20vJUU1JTlCJUJFJUU1JUJBJThBL3ZpbSVFNSU5MSVCRCVFNCVCQiVBNCVFNyU5QSU4NCVFNCVCRCVCRiVFNyU5NCVBOC5wbmc?x-oss-process=image/format,png"></p>
<h1 id="docker入门"><a href="#docker入门" class="headerlink" title="docker入门"></a>docker入门</h1><p>一、安装docker</p>
<ol>
<li><p>确保centos7能够访问外网</p>
</li>
<li><p>安装gcc和gcc-c++</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">yum -y install gcc</span><br><span class="line"></span><br><span class="line">yum -y install gcc-c++</span><br></pre></td></tr></table></figure></li>
<li><p>检查gcc 是否安装成功</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">gcc -v</span><br></pre></td></tr></table></figure></li>
<li><p>安装需要的软件包</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum install -y yum-utils device-mapper-persistent-data lvm2</span><br></pre></td></tr></table></figure></li>
<li><p>设置stable镜像仓库</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum-config-manager --add-repo http:&#x2F;&#x2F;mirrors.aliyun.com&#x2F;docker-ce&#x2F;linux&#x2F;centos&#x2F;docker-ce.repo</span><br></pre></td></tr></table></figure></li>
<li><p>更新yum软件包索引</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum makecache fast</span><br></pre></td></tr></table></figure></li>
<li><p>安装docker-ce</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">yum -y install docker-ce</span><br></pre></td></tr></table></figure></li>
<li><p>启动docker服务 并 设置开机自启动</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">systemctl start docker</span><br><span class="line"></span><br><span class="line">systemctl enable docker</span><br></pre></td></tr></table></figure></li>
<li><p>查看docker版本</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker version</span><br></pre></td></tr></table></figure></li>
<li><p>配置阿里云镜像加速</p>
<p>步骤：</p>
<ol>
<li><p>注册阿里云,网址：<a target="_blank" rel="noopener" href="https://www.aliyun.com/">https://www.aliyun.com</a> </p>
</li>
<li><p>找到控制台 -&gt; 容器镜像服务 -&gt; 镜像中心 -&gt;镜像加速器 -&gt; 得到加速器地址</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">mkdir -p &#x2F;etc&#x2F;docker</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">tee &#x2F;etc&#x2F;docker&#x2F;daemon.json &lt;&lt;-&#39;EOF&#39;</span><br><span class="line">&#123;</span><br><span class="line">  &quot;registry-mirrors&quot;: [&quot;https:&#x2F;&#x2F;gdewd58d.mirror.aliyuncs.com&quot;]</span><br><span class="line">&#125;</span><br><span class="line">EOF</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl daemon-reload</span><br></pre></td></tr></table></figure>

<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">systemctl restart docker</span><br></pre></td></tr></table></figure></li>
</ol>
</li>
<li><p>Registry 和 Repository</p>
<p>Docker Registry 用来保存镜像，可以理解为代码控制中的代码仓库。</p>
<p>一个 Docker Registry 中可以包含多个仓库（Repository）；每个仓库可以包含多个标签（Tag）；每个标签对应一个镜像。</p>
<p>通常，一个仓库会包含同一个软件不同版本的镜像，而标签就常用于对应该软件的各个版本。我们可以通过 **&lt;仓库名&gt;:&lt;标签&gt;**的格式来指定具体是这个软件哪个版本的镜像。如果不给出标签，将以 <strong>latest</strong> 作为默认标签。</p>
</li>
<li><p>查看docker信息</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker info</span><br></pre></td></tr></table></figure></li>
<li><p>搜索镜像 (支持模糊查询)</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker search 镜像名称</span><br></pre></td></tr></table></figure></li>
<li><p>拉取镜像</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker pull 镜像名称</span><br></pre></td></tr></table></figure></li>
<li><p>查看镜像id</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker images</span><br></pre></td></tr></table></figure></li>
</ol>
<h5 id="运行镜像"><a href="#运行镜像" class="headerlink" title="运行镜像"></a>运行镜像</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line">docker run -d -p 本机端口:容器端口 镜像名称&#x2F;id</span><br><span class="line">-d:镜像在后台运行</span><br><span class="line">-p:指定本机与容器内部交互的端口 -P是随机开放一个端口与容器内部ID映射</span><br><span class="line">运行tomcat镜像,我们把虚拟机的80端口映射到容器的8080端口</span><br><span class="line"></span><br><span class="line">[root@mars ~]# docker run -d -p 80:8080 tomcat</span><br><span class="line">78bfadc70614276d343cbba7d23a85ee856200f89810d38dec2c4460d064320a  ##把镜像启动为一个容器，返回容器的ID</span><br><span class="line"></span><br></pre></td></tr></table></figure>

<h5 id="查看正在运行的容器id"><a href="#查看正在运行的容器id" class="headerlink" title="查看正在运行的容器id"></a>查看正在运行的容器id</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker ps</span><br></pre></td></tr></table></figure>

<h5 id="进入到容器内部"><a href="#进入到容器内部" class="headerlink" title="进入到容器内部"></a>进入到容器内部</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line">docker exec -it 容器ID bash </span><br><span class="line">至此tomcat已经运行，但还需要进行下面修改：</span><br><span class="line"> rm -rf webapps</span><br><span class="line"> mv webapps.dist&#x2F; webapps</span><br><span class="line"> 浏览器输入：http:192.168.45.129即可看到Tomcat首页</span><br><span class="line"> 切记：不要用IE，不要用https:&#x2F;&#x2F;</span><br></pre></td></tr></table></figure>

<h5 id="退出容器"><a href="#退出容器" class="headerlink" title="退出容器"></a>退出容器</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">exit</span><br></pre></td></tr></table></figure>

<h5 id="文件传输-系统到容器"><a href="#文件传输-系统到容器" class="headerlink" title="文件传输(系统到容器)"></a>文件传输(系统到容器)</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker cp 本地文件路径 ID全称:容器路径</span><br></pre></td></tr></table></figure>

<h5 id="文件传输-容器到系统"><a href="#文件传输-容器到系统" class="headerlink" title="文件传输(容器到系统)"></a>文件传输(容器到系统)</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker cp ID全称:容器文件路径 本地路径</span><br></pre></td></tr></table></figure>
<h2 id="镜像和容器的删除：先停止容器，再删除容器，删除镜像"><a href="#镜像和容器的删除：先停止容器，再删除容器，删除镜像" class="headerlink" title="镜像和容器的删除：先停止容器，再删除容器，删除镜像"></a>镜像和容器的删除：先停止容器，再删除容器，删除镜像</h2><h5 id="停止容器"><a href="#停止容器" class="headerlink" title="停止容器"></a>停止容器</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker stop 容器ID</span><br></pre></td></tr></table></figure>

<h5 id="删除容器"><a href="#删除容器" class="headerlink" title="删除容器"></a>删除容器</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker rm 容器id</span><br></pre></td></tr></table></figure>

<h5 id="删除镜像"><a href="#删除镜像" class="headerlink" title="删除镜像"></a>删除镜像</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">docker rmi 镜像id</span><br></pre></td></tr></table></figure>

<h5 id="构建镜像发布自己的项目"><a href="#构建镜像发布自己的项目" class="headerlink" title="构建镜像发布自己的项目"></a>构建镜像发布自己的项目</h5><figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br></pre></td><td class="code"><pre><span class="line">##创建一个文件夹放Dockerfile和项目</span><br><span class="line">[root@mars ~]# mkdir docker</span><br><span class="line">[root@mars ~]# cd docker&#x2F;</span><br><span class="line">##编辑Dockerfile文件输入以下内容</span><br><span class="line">[root@mars docker]# vim DockerFile</span><br><span class="line">    from tomcat</span><br><span class="line">    copy EasyBuy.war &#x2F;usr&#x2F;tomcat&#x2F;webapps</span><br><span class="line">    ENV LANG C.UTF-8</span><br><span class="line">##构建镜像：docker build -t 镜像名称(镜像名称必须为小写):镜像版本 . </span><br><span class="line">##注意&quot;.&quot;代表Dockerfile在当前目录</span><br><span class="line">[root@mars docker]# docker build -t docker-test:latest .</span><br><span class="line">##运行镜像</span><br><span class="line">[root@mars docker]# docker run -d -p 80:8080 docker-test</span><br></pre></td></tr></table></figure>

<h2 id="docker-安装tomcat"><a href="#docker-安装tomcat" class="headerlink" title="docker 安装tomcat"></a>docker 安装tomcat</h2><p>注意：tomcat里面的webapps目录是空的</p>
<h2 id="docker-安装mysql"><a href="#docker-安装mysql" class="headerlink" title="docker 安装mysql"></a>docker 安装mysql</h2><p>注意：mysql版本选5.7    mysql需要配置允许远程连接</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br></pre></td><td class="code"><pre><span class="line">use mysql;</span><br><span class="line">GRANT ALL PRIVILEGES ON *.* TO &#39;root&#39;@&#39;%&#39; IDENTIFIED BY &#39;root&#39; WITH GRANT OPTION;</span><br><span class="line">flush privileges;</span><br></pre></td></tr></table></figure>

<p>docker  pull mysql</p>
<p>docker run -d  -p 3306:3306 -e MYSQL_ROOT_PASSWORD=root mysql:5.7<br>注：3306端口默认需要关闭防火墙</p>
<h1 id="docker安装tomcat和mysql5-7，运行EasyBuy项目"><a href="#docker安装tomcat和mysql5-7，运行EasyBuy项目" class="headerlink" title="docker安装tomcat和mysql5.7，运行EasyBuy项目"></a>docker安装tomcat和mysql5.7，运行EasyBuy项目</h1><p>详细步骤如下：<br><a target="_blank" rel="noopener" href="https://zzj-1300408493.cos.ap-chengdu.myqcloud.com/%E9%9F%B3%E9%A2%91/EasyBuy.mp4">项目部署</a></p>

    </div>

    
    
    

    <footer class="post-footer">
          

<div class="post-copyright">
<ul>
  <li class="post-copyright-author">
      <strong>本文作者： </strong>Carson Zhao
  </li>
  <li class="post-copyright-link">
      <strong>本文链接：</strong>
      <a href="https://bone-nails.gitee.io/2020/09/08/%E8%BF%90%E7%94%A8docker%E5%AE%89%E8%A3%85tomcat-mysql/" title="运用docker安装tomcat-mysql">https://bone-nails.gitee.io/2020/09/08/运用docker安装tomcat-mysql/</a>
  </li>
  <li class="post-copyright-license">
    <strong>版权声明： </strong>本博客所有文章除特别声明外，均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/deed.zh" rel="noopener" target="_blank"><i class="fab fa-fw fa-creative-commons"></i>BY-NC-SA</a> 许可协议。转载请注明出处！
  </li>
</ul>
</div>

          <div class="post-tags">
              <a href="/hexo_blog/tags/Docker/" rel="tag"># Docker</a>
              <a href="/hexo_blog/tags/Tomcat/" rel="tag"># Tomcat</a>
              <a href="/hexo_blog/tags/Mysql/" rel="tag"># Mysql</a>
          </div>

        

          <div class="post-nav">
            <div class="post-nav-item">
                <a href="/hexo_blog/2020/09/07/Error-java-%E9%9C%80%E8%A6%81class-interface%E6%88%96enum/" rel="prev" title="Error_java_需要class,interface或enum">
                  <i class="fa fa-chevron-left"></i> Error_java_需要class,interface或enum
                </a>
            </div>
            <div class="post-nav-item">
                <a href="/hexo_blog/2020/09/08/%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E6%90%AD%E5%BB%BA%E4%BB%A5%E5%8F%8Adocker%E5%AE%89%E8%A3%85oracle11g/" rel="next" title="云服务器搭建以及docker安装oracle11g">
                  云服务器搭建以及docker安装oracle11g <i class="fa fa-chevron-right"></i>
                </a>
            </div>
          </div>
    </footer>
  </article>
</div>







<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      const activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      const commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>
</div>
  </main>

  <footer class="footer">
    <div class="footer-inner">


<div class="copyright">
  &copy; 
  <span itemprop="copyrightYear">2021</span>
  <span class="with-love">
    <i class="fa fa-heart"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">Carson Zhao</span>
</div>
<div class="wordcount">
  <span class="post-meta-item">
    <span class="post-meta-item-icon">
      <i class="fa fa-chart-line"></i>
    </span>
      <span>站点总字数：</span>
    <span title="站点总字数">125k</span>
  </span>
  <span class="post-meta-item">
    <span class="post-meta-item-icon">
      <i class="fa fa-coffee"></i>
    </span>
      <span>站点阅读时长 &asymp;</span>
    <span title="站点阅读时长">1:54</span>
  </span>
</div>
<div class="busuanzi-count">
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://theme-next.js.org/" class="theme-link" rel="noopener" target="_blank">NexT.Gemini</a> 强力驱动
  </div>

    </div>
  </footer>

  
  <script size="300" alpha="0.6" zIndex="-1" src="https://cdn.jsdelivr.net/npm/ribbon.js@1.0.2/dist/ribbon.min.js"></script>
  <script src="https://cdn.jsdelivr.net/npm/animejs@3.2.1/lib/anime.min.js"></script>
<script src="/hexo_blog/js/utils.js"></script><script src="/hexo_blog/js/next-boot.js"></script>

  
<script src="/hexo_blog/js/local-search.js"></script>



<script>
if (document.querySelectorAll('.pdf-container').length) {
  NexT.utils.getScript('https://cdn.jsdelivr.net/npm/pdfobject@2.2.4/pdfobject.min.js', () => {
    document.querySelectorAll('.pdf-container').forEach(element => {
      PDFObject.embed(element.dataset.target, element, {
        pdfOpenParams: {
          navpanes : 0,
          toolbar  : 0,
          statusbar: 0,
          pagemode : 'thumbs',
          view     : 'FitH'
        },
        PDFJS_URL: '/hexo_blog/lib/pdf/web/viewer.html',
        height   : element.dataset.height
      });
    });
  }, window.PDFObject);
}
</script>


  <script>
    NProgress.configure({
      showSpinner: true
    });
    NProgress.start();
    document.addEventListener('readystatechange', () => {
      if (document.readyState === 'interactive') {
        NProgress.inc(0.8);
      }
      if (document.readyState === 'complete') {
        NProgress.done();
      }
    });
    document.addEventListener('pjax:send', () => {
      NProgress.start();
    });
    document.addEventListener('pjax:success', () => {
      NProgress.done();
    });
  </script>

  
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>





<script src="/hexo_blog/live2dw/lib/L2Dwidget.min.js?094cbace49a39548bed64abff5988b05"></script><script>L2Dwidget.init({"pluginModelPath":"assets/","model":{"jsonPath":"/hexo_blog/live2dw/assets/hijiki.model.json"},"display":{"position":"right","width":200,"height":400},"mobile":{"show":true},"log":false,"pluginJsPath":"lib/","pluginRootPath":"live2dw/","tagMode":false});</script></body>
</html>
